<template>
  <!-- 双圆节点 -->
  <div class="double-circle-node">
    <slot name="top" />
    <div class="node-content">
      {{ data.label }}
    </div>
    <slot name="bottom" />
  </div>
</template>

<script setup lang="ts">
interface Props {
  id: string
  data: {
    label: string
    nodeType: string
  }
}

defineProps<Props>()
</script>

<style scoped>
.double-circle-node {
  width: 100px;
  height: 100px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.double-circle-node::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid #000;
  border-radius: 50%;
  pointer-events: none;
}

.node-content {
  text-align: center;
  font-size: 12px;
  color: #000;
  font-weight: 500;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
  position: relative;
}
</style>
